home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 82
/
082.d81
/
what goes up
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
25KB
|
721 lines
100 rem@ s=1024
110 n=1:v=53248:poke56578,peek(56578)or3:poke56576,(peek(56576)and252)or0
120 gosub4290:poke648,192:poke53265,23:poke53272,9:poke650,128:print"[147]";:a=rnd(-ti)
130 pokev+21,0:poke53282,2:poke53283,1:poke53270,216:poke53281,0:poke53280,0
140 cd$=""
150 cl$=" ":sm$="loadstar!"+chr$(13)
160 dima$(125),a(127),c(12,3),l(3),s(3,2),d(100,1),m$(23),i(4),n$(12),i$(8)
170 dimtp$(10),ts(10),ls(3),t$(44),pr(4),pr$(4),sp(3)
180 ch$="[208]abcdefghijklmnopqrstuvwxyz1234567890?!'.$[191][217][180]"
190 readb,c:ifc<>-1thena(b)=c:goto190
200 z1=1024:z2=1173:z3=1180:z4=1193:fora=1to8:readc(a,1):next
210 fora=1to12:readc(a,2):next:fora=1to8:readc(a,3):next
220 fora=1to3:readl(a):next
230 fora=0to23:readm$(a):m$(a)=" "+m$(a)+" ":next
240 fora=1to12:readn$(a):next
250 fora=1to8:readi$(a):next
260 p4=0
270 fora=0to44:readt$(a):next
280 z=1:jp=56321
290 open15,8,15,"r0:the best=the best":input#15,a$:close15:ifa$<>"63"then6960
300 z=0
310 open2,8,2,"the best,s,r":fora=1to10:input#2,p$(a),a$:ts(a)=val(a$)
320 next:input#2,qu$:close2:ml=12
330 pr(0)=50:pr(1)=15:pr(2)=25:pr(3)=50:pr(4)=30
340 pr$(0)="rocket":pr$(1)="flashlight":pr$(2)="bomb":pr$(3)="shield"
350 pr$(4)="spanner":sp(1)=57:sp(3)=56
360 gosub7110:goto2400
370 print"[147]";:pokev+21,0:pokev+23,0:fora=.to4:i(a)=0:next:cd=2
380 ifpm=0thenl=1
390 dl=0:mb=3:s=.:o8=72:pokesd+5,9:pokesd+6,0:rem begin stage
400 pokesd+4,wf:pokesd+1,33:pokesd,135:pokesd+4,17:fora=1to50:next:ct=.:wf=16
410 gosub5900:pokesd+4,16:poke53283,c4:poke53282,c3:poke646,c2or8
420 s4=.:print"[147]";:poke198,.:ac=0:xs=x1:ys=y1-1:pb=49422:ip=1
430 gosub6110:gosub6020:tm=mt:s1=.:s3=.:tn=tu:s4=.:poke198,0
440 x=xs:sc=49352:y=ys+20:rv=8:ov=10:sp=32:sx=16+x*8:pokev+1,88
450 pokev,sx:poke50168,16:pokev+39,3:pokev+21,1:gosub790
460 sysz4,fs:sys z2,33:pokev+16,0:d1=1:db=100:nd=0
470 ifbl<>.thengosub6430
480 sx=16+x*8:pokev,sx:poke50168,16
490 j=peek(jp)and127:ifj=111then800
500 if(jand1)=.thengosub750
510 if(jand2)=.thengosub770
520 bx=peek(x+sc+40):ifint(a(bx))=.then550
530 ona(bx)goto2830,3380,3390,4210,4200,4240,4220,4230,3020,3510,4270
540 ona(bx)-11goto4310,4340,4390,4430,550,550,4980,5820
550 j=peek(jp):if(jand4)=.thendr=-n:bx=peek(x+sc+dr):goto630
560 if(jand8)=.thendr=n:bx=peek(x+sc+dr):goto630
570 k=.:tn=tn-n:iftn<nthentn=tu:tm=tm-n:gosub790:iftm<nthen2830
580 ifs1=nthens3=s3-n:ifs3=.then710
590 ifs4=nthens5=s5-n:ifs5=.thens4=.:poke53283,c4:poke53282,c3
600 goto470
610 ifk=1then570
620 goto550
630 k=n:d1=dr:dm=.:ifbx=221then4390
640 ifint(a(bx))=.then3550
650 pc=17:ifr=.5thenpc=16
660 r=.:ona(bx)goto2830,690,3550,3550,3550,4240,3550,3550,3020,3510
670 ona(bx)-10goto4270,4310,4340,4390,4430,4490,4610,4980,5820
680 goto3550
690 pokev,sx+dr*4:poke50168,pc:x=x+dr:goto570
700 pokev,sx+dr*4:fora=nto50:next:x=x+dr:sx=16+x*8:pokev,sx:poke50168,16:goto570
710 s1=0:poke53280,0:ifa(peek(x+sc+40))=1then2830
720 ifa(peek(x+sc))=1then2830
730 goto600
740 pokepb+(pp-1)*40,32:pokepb+(ip-1)*40,106:return
750 pp=ip:ip=ip-1:ifip<1thenip=6
760 gosub740:return
770 pp=ip:ip=ip+1:ifip>6thenip=1
780 gosub740:return
790 print""tab(33)tm"[157] ":return
800 ifip=6then830
810 onipgosub980,1120,1160,1260,1300
820 goto520
830 sys z1,10,20,30,1
840 print"";:fora=1to24:printtab(30)" ":next:print""tab(31)"[159]game"
850 printtab(31)"paused":print:printtab(31)"press:"
860 printtab(31)"a to":printtab(31)"abort,"
870 printtab(31)"q to":printtab(31)"quit,"
880 printtab(31)"e to":printtab(31)"exit the":printtab(31)"program,"
890 printtab(31)"or space":printtab(31)"to":printtab(31)"return"
900 printtab(31)"to the":printtab(31)"game."
910 poke198,0
920 geta$:ifa$="a"thenab=1:goto2830
930 ifa$="q"then3560
940 ifa$="e"then1350
950 ifa$<>" "then920
960 print"";:fora=1to24:printtab(30)" ":next:print"";:gosub6110
970 goto520
980 ifi(.)=.thenreturn
990 i(.)=i(.)-1:print""tab(33)i(.)""
1000 sysz2,129:sysz1,0,50,30,20
1010 poke646,c2or8:poke50168,25:pokev+2,peek(v):pokev+3,peek(v+1):pokev+40,2
1020 poke50169,26:ex=27:pokev+21,3
1030 fora=1to10:ifa(peek(x+sc-40))<>2thena=10:next:goto1110
1040 yz=ys-5
1050 ifyz<1thenyz=yz+100:goto1050
1060 sys915:print""a$(yz):y=y-1:ify<1theny=100
1070 ys=ys-1:ifys<1thenys=100
1080 ifbl<>.thenbp=bp+40:ifbp>50151thenbl=0
1090 poke50169,ex:ifex=27thenex=26:next:goto1110
1100 ex=27:next
1110 sys1173,33:pokev+21,1:poke50168,16:return
1120 ifi(n)=.thenreturn
1130 ifs4=nthenreturn
1140 i(n)=i(n)-n:print""tab(33)i(1)""
1150 sysz1,10,250,30,100:s5=30:s4=n:poke53283,11:poke53282,2:return
1160 ifi(2)=.thenreturn
1170 i(2)=i(2)-1:print""tab(33)i(2)"":pokev+40,10:sysz2,129
1180 pokev+2,peek(v):pokev+3,peek(v+1):poke50169,18:pokev+21,3
1190 fora=1to7:next:poke50169,19:gosub1340:fora=-41to-39
1200 ifa(peek(x+sc+a))=.5thenpokex+sc+a,32
1210 next:poke50169,20:ifa(peek(x+sc-1))=.5thenpokex+sc-1,32
1220 ifa(peek(x+sc+1))=.5thenpokex+sc+1,32
1230 poke50169,21:fora=39to41:ifa(peek(x+sc+a))=.5thenpokex+sc+a,32
1240 next:poke50169,22:fora=1to7:next:poke50169,23:fora=1to7:next:pokev+21,1
1250 sysz2,33:return
1260 ifs1=1thenreturn
1270 ifi(3)=.thenreturn
1280 sysz1,190,250,30,20:s1=1:s3=20:poke53280,1
1290 i(3)=i(3)-1:print""tab(33)i(3)"":return
1300 ifpeek(x+sc+40+d1)<>32thenreturn
1310 ifi(4)=.thenreturn
1320 sysz1,10,50,30,1:pokex+sc+40+d1,99
1330 i(4)=i(4)-1:print""tab(33)i(4)"":return
1340 sysz1,10,250,30,100:return
1350 pokev+21,0:pokesd+4,0:pokesd+11,0:pokesd+18,0:pokesd+5,9:pokesd+6,0
1360 print"[153][147]";
1370 sysz1,10,171,50,160
1380 print"do you want to:"
1390 print""tab(7)"1.reset the program"
1400 print""tab(7)"2.return to the boot menu"
1410 print""tab(7)"3.return to loadstar"
1420 rv=9
1430 getqq$:qq=val(qq$):onqqgoto1560,1450,1500
1440 goto1430
1450 print"[147]";:sysz3:pokesd+4,32
1460 open15,8,15,"r0:upboot=upboot":input#15,er%:close15
1480 poke53272,21:poke648,4:poke56576,151:poke53265,27:poke53270,200:print"[147][154]";
1490 poke53281,6:poke53280,14
1495 ifer%<>63thenprint"[147]":end
1496 goto60000
1500 print"[147]";:sysz3:pokesd+4,32
1510 open15,8,15,"r0:hello connect=hello connect":input#15,er%:close15
1520 ifer%<>63then1480
1530 poke53272,21:poke648,4:poke56576,151:poke53265,27:poke53270,200:print"[147][158]";
1540 poke53281,3:poke53280,10
1550 load "hello connect",8
1560 run
1570 data109,1,125,1,102,1,104,1,92,1,85,1,73,1,36,1,31,1,42,1,72,1,68,1,70,1
1580 data32,2,87,3,77,4,78,5,91,6,27,7,29,8,35,9,0,10,82,11,79,12
1590 data28,13,59,13.41,60,13.31,71,13.11,90,13.21
1600 data74,1,124,1,83,14,75,.5,99,.5,113,.5,88,.5,86,.5,66,15,37,16
1610 data41,17,47,18,62,16,96,16,30,16,80,19,100,14,121,4.5,127,5.5,76,2,-1,-1
1620 data0,6,14,3,1,3,14,6
1630 data0,9,2,8,10,7,1,7,10,8,2,9
1640 data0,11,12,15,1,15,12,11
1650 data8,12,8
1660 data" by johnny harris! "
1670 data" @ 1990 john harris "
1680 data"published on loadstar 82"
1690 data" press fire!! "
1700 data" so you managed to make "
1710 data" it through the last "
1720 data" set of tunnels, eh? "
1730 data"well, here are 12 more! "
1740 data" and they're even harder"
1750 data" than before!! "
1760 data"you think ya got what it"
1770 data"takes? suuuure you do..."
1780 data" hahahahahahahahaha.... "
1790 data" to enter the control "
1800 data"screen, type 'loadstar!'"
1810 data" and press return! "
1820 data"(built-in advertisment!)"
1830 data" i bet you're sick "
1840 data" of exclamation points! "
1850 data" well, i'm not!! "
1860 data"!!!!!!!!!!!!!!!!!!!!!!!!"
1870 data" now i'm sick of them. "
1880 data" see ya! "
1890 data" "
1900 data one,two,three,four,five,six,seven,eight,nine,ten,eleven,twelve
1910 data"access card","flashlight","bomb","shield"
1920 data"key","rocket","spanner","1 up"
1930 data" you have escaped from the "
1940 data" planet,and are returning "
1950 data" home. i hope you enjoyed "
1960 data" the game! before i go, i "
1970 data" would just like to thank "
1980 data" the editors of loadstar: "
1990 data" fender tucker & jeff jones "
2000 data""," for agreei